import static org.junit.Assert.*;


import org.junit.Test;
public class PlayerclientFrameTest {


    PlayerclientFrame Frame = new PlayerclientFrame();
	
	

	@Test
    public void Test(){
	
	//int mygold =0, maxgolden=0,mytimeingame=0;	
	//Boolean longround =false;
	//String oldaction=null, mycondition =null, whataction2=null,selectaction = null;
	
	//Frame.Bcheckaction(whataction2,selectaction,mygold,maxgolden, mytimeingame,longround,oldaction,mycondition);
		
	//assertNotSame("empty",Frame.Bcheckaction("empty","empty",0,0,1,false,null,null));	
	}

@Test
public void Test1(){
	String whataction2="check",selectaction = "empty";
	Frame.Bfoldaction(whataction2,selectaction);
	
	
	assertSame(Frame.Bfoldaction("check","empty"),"check");
	assertNotNull(Frame.Bfoldaction("check","empty"));
    assertSame(Frame.Bfoldaction("check","check"),"empty");



}
@Test
public void Test2(){
	String whataction2="check",selectaction = "empty";
	int mygold=0;
	Frame.Ballin(whataction2,selectaction,mygold);
 	
	
	assertSame(Frame.Ballin("check","empty",50),"check");
    assertSame(Frame.Ballin("check","check",0),"empty");  
    assertNotSame(Frame.Ballin("check","empty",50),"allin");
	assertNotSame(Frame.Ballin("check","check",0),"check");
}



@Test
public void Test3(){
	String whataction2="check",selectaction = "empty", oldaction="check";
	int mygold=0,mygoldingame=0,maxgolden=0;
	Frame.Bcallaction(whataction2,selectaction,oldaction,maxgolden, mygoldingame,mygold );
 	
	
	assertSame(Frame.Bcallaction("check","empty","",100,50,200),"check");
	assertSame(Frame.Bcallaction("check","empty","",100,50,50),"Allin");
	assertNotSame(Frame.Bcallaction("check","empty","",100,50,200),"allin");
	assertNotSame(Frame.Bcallaction("check","empty","",100,50,50),"check");
	
	assertSame(Frame.Bcallaction("check","check","",100,50,200),"empty");
	assertNotSame(Frame.Bcallaction("check","check","",100,50,50),"Allin");




}

@Test
public void Test4(){
	String whataction2="check",selectaction = "empty",oldaction =null; boolean longround = false;
	int mygold=0,mygoldingame=0,maxgolden=0,howgold =0, mytimeingame=0;
	Frame.Braiseaction(whataction2,selectaction,mytimeingame,longround,oldaction,maxgolden, mygoldingame,howgold,mygold );
 	
	
	assertSame(Frame.Braiseaction("check","check",1,false,"",300,200,50,20),"empty");
	assertNotSame(Frame.Braiseaction("check","check",1,false,"",300,200,50,20),"check");
	
	assertSame(Frame.Braiseaction("check","empty",1,false,"",300,200,150,200),"Bet");
	assertNotSame(Frame.Braiseaction("check","empty",1,false,"",300,200,150,200),"check");
	assertSame(Frame.Braiseaction("check","empty",2,true,"",300,200,150,200),"check");
	
	
	
	assertSame(Frame.Braiseaction("check","empty",2,false,"check",300,200,150,200),"Bet");
	assertSame(Frame.Braiseaction("check","empty",2,false,"Bet",300,200,150,200),"check");
	
	assertNotSame(Frame.Braiseaction("check","empty",2,false,"check",300,200,150,200),"check");
	assertNotSame(Frame.Braiseaction("check","empty",2,false,"Bet",300,200,150,200),"Bet");

	
	assertSame(Frame.Braiseaction("check","empty",2,false,"",300,200,150,150),"Allin");
	assertSame(Frame.Braiseaction("check","empty",2,false,"",300,200,150,100),"Allin");
	
	assertNotSame(Frame.Braiseaction("check","empty",2,false,"",300,200,150,150),"check");
	assertNotSame(Frame.Braiseaction("check","empty",2,false,"",300,200,150,100),"check");
	
	
	assertSame(Frame.Braiseaction("check","empty",2,false,"",300,200,100,150),"Call");
	assertNotSame(Frame.Braiseaction("check","empty",2,false,"",300,200,100,150),"Allin");
	
	
	
}


@Test
public void Test5(){
	String whataction2="check",selectaction = "empty",oldaction =null; boolean longround = false;
	int mygold=0,mygoldingame=0,maxgolden=0,howgold =0, mytimeingame=0;
	Frame.Bbetaction(whataction2,selectaction,mytimeingame,longround,oldaction,maxgolden, mygoldingame,howgold,mygold );
 	
	
	assertSame(Frame.Bbetaction("check","check",1,false,"",300,200,50,20),"empty");
	assertNotSame(Frame.Bbetaction("check","check",1,false,"",300,200,50,20),"check");
	
	assertSame(Frame.Bbetaction("check","empty",1,false,"",300,200,150,500),"check");
	assertNotSame(Frame.Bbetaction("check","empty",1,false,"",300,200,150,500),"Allin");
	
	assertSame(Frame.Bbetaction("Allin","empty",2,false,"check",300,200,150,500),"Allin");
	assertNotSame(Frame.Bbetaction("Allin","empty",2,false,"",300,200,150,500),"check");
	
	
	assertSame(Frame.Bbetaction("check","Allin",1,false,"",300,200,50,20),"Allin");
	assertSame(Frame.Bbetaction("check","Allin",1,false,"",300,200,50,50),"Allin");
	
	assertNotSame(Frame.Bbetaction("check","Allin",1,false,"",300,200,50,20),"empty");
	assertNotSame(Frame.Bbetaction("check","Allin",1,false,"",300,200,50,50),"empty");


	assertSame(Frame.Bbetaction("check","empty",1,false,"",300,200,100,200),"Call");
	assertNotSame(Frame.Bbetaction("check","empty",1,false,"",300,200,100,200),"Allin");



}



@Test
public void Test6(){
	String whataction2="check",selectaction = "check",oldaction =null,mycondition=null; boolean longround = false;
	int mygold=0,maxgolden=0,mytimeingame=0;
	Frame.Bcheckaction(whataction2,selectaction,mygold,maxgolden,mytimeingame,longround,oldaction,mycondition);
 	assertSame(Frame.Bcheckaction("check","check",100,300,1,false,"",""),"empty");
	assertNotSame(Frame.Bcheckaction("check","check",100,300,1,false,"",""),"check");
	
	assertSame(Frame.Bcheckaction("check","empty",100,300,1,false,"",""),"check");
	assertNotSame(Frame.Bcheckaction("check","empty",100,300,1,false,"",""),"Bet");

	assertSame(Frame.Bcheckaction("check","empty",100,300,2,false,"Check",""),"check");
	assertNotSame(Frame.Bcheckaction("check","empty",100,300,2,false,"Check",""),"Bet");







}
}